projects
/
babl.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
e5fe75a
)
make fish hashes less likely to fail
author
Øyvind Kolås
<pippin@gimp.org>
Sat, 31 Dec 2016 19:26:35 +0000
(20:26 +0100)
committer
Øyvind Kolås
<pippin@gimp.org>
Sat, 31 Dec 2016 19:26:35 +0000
(20:26 +0100)
babl/babl-fish.c
patch
|
blob
|
history
diff --git
a/babl/babl-fish.c
b/babl/babl-fish.c
index 76cb53d0cc5f7ad8be23e503ee25b1aff7ad0103..96c69c3b195c81167db460aae4f26d0692c0b33d 100644
(file)
--- a/
babl/babl-fish.c
+++ b/
babl/babl-fish.c
@@
-133,6
+133,8
@@
babl_fish_get_id (const Babl *source,
* source/destination values. */
ptrdiff_t id = source - destination;
/* instances with id 0 won't be inserted into database */
+ id *= ((((size_t) (source))) % 37);
+
if (id == 0)
id = 1;
return id;